package chapter3;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
@Component
public class Player {
	@Autowired
	@Qualifier("basketball")
	private Ball ball;
	
	public String play() {
		return ball.roll();
	}
}
